package com.clock.domain.entity;

import cn.hutool.core.date.DateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.Date;


@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
@Data
@ApiModel("鸡汤")
public class ChickenSoup  {

    @ApiModelProperty(value = "鸡汤id")
    private Long soupId;

    @ApiModelProperty(value = "鸡汤内容")
    @NotNull
    private String soupContent;

    @ApiModelProperty(value = "创建时间")
    private Date creatTime;


    public ChickenSoup(String s, DateTime date) {
        this.soupContent  = s;
        this.creatTime = date;
    }
}
